package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 专利附件类
 * </p>
 *
 * @author cy
 * @since 2020-10-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PPhoto extends Model<PPhoto> {

    private static final long serialVersionUID = 1L;

    /**
     * 专利图片主键id
     */
    @TableId(value = "photo_id", type = IdType.AUTO)
    private Integer photoId;

    /**
     * 专利id
     */
    @JsonProperty("pId")
    private Integer pId;

    /**
     * 图片名称
     */
    @TableField("photoName")
    private String photoName;


    @Override
    protected Serializable pkVal() {
        return this.photoId;
    }

}
